home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / apache / conf / httpd.conf next >
Text File  |  2005-06-19  |  35KB  |  1,025 lines

  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # The configuration directives are grouped into three basic sections:
  14. #  1. Directives that control the operation of the Apache server process as a
  15. #     whole (the 'global environment').
  16. #  2. Directives that define the parameters of the 'main' or 'default' server,
  17. #     which responds to requests that aren't handled by a virtual host.
  18. #     These directives also provide default values for the settings
  19. #     of all virtual hosts.
  20. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  21. #     different IP addresses or hostnames and have them handled by the
  22. #     same Apache server process.
  23. #
  24. # Configuration and logfile names: If the filenames you specify for many
  25. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  26. # server will use that explicit path.  If the filenames do *not* begin
  27. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  28. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  29. # server as "/usr/local/apache/logs/foo.log".
  30. #
  31. # NOTE: Where filenames are specified, you must use forward slashes
  32. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  33. # If a drive letter is omitted, the drive on which Apache.exe is located
  34. # will be used by default.  It is recommended that you always supply
  35. # an explicit drive letter in absolute paths, however, to avoid
  36. # confusion.
  37. #
  38.  
  39. ### Section 1: Global Environment
  40. #
  41. # The directives in this section affect the overall operation of Apache,
  42. # such as the number of concurrent requests it can handle or where it
  43. # can find its configuration files.
  44. #
  45.  
  46. #
  47. # ServerRoot: The top of the directory tree under which the server's
  48. # configuration, error, and log files are kept.
  49. #
  50. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  51. # mounted filesystem then please read the LockFile documentation
  52. # (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
  53. # you will save yourself a lot of trouble.
  54. #
  55. # Do NOT add a slash at the end of the directory path.
  56. #
  57. ServerRoot "/xampp/apache"
  58.  
  59. #
  60. # ScoreBoardFile: File used to store internal server process information.
  61. # If unspecified (the default), the scoreboard will be stored in an
  62. # anonymous shared memory segment, and will be unavailable to third-party
  63. # applications.
  64. # If specified, ensure that no two invocations of Apache share the same
  65. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  66. #
  67. #ScoreBoardFile logs/apache_runtime_status
  68.  
  69. #
  70. # PidFile: The file in which the server should record its process
  71. # identification number when it starts.
  72. #
  73. PidFile logs/httpd.pid
  74.  
  75. #
  76. # Timeout: The number of seconds before receives and sends time out.
  77. #
  78. Timeout 300
  79.  
  80. #
  81. # KeepAlive: Whether or not to allow persistent connections (more than
  82. # one request per connection). Set to "Off" to deactivate.
  83. #
  84. KeepAlive On
  85.  
  86. #
  87. # MaxKeepAliveRequests: The maximum number of requests to allow
  88. # during a persistent connection. Set to 0 to allow an unlimited amount.
  89. # We recommend you leave this number high, for maximum performance.
  90. #
  91. MaxKeepAliveRequests 100
  92.  
  93. #
  94. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  95. # same client on the same connection.
  96. #
  97. KeepAliveTimeout 15
  98.  
  99. ##
  100. ## Server-Pool Size Regulation (MPM specific)
  101. ##
  102.  
  103. # WinNT MPM
  104. # ThreadsPerChild: constant number of worker threads in the server process
  105. # MaxRequestsPerChild: maximum  number of requests a server process serves
  106. <IfModule mpm_winnt.c>
  107. ThreadsPerChild 250
  108. MaxRequestsPerChild  0
  109. </IfModule>
  110.  
  111. #
  112. # Listen: Allows you to bind Apache to specific IP addresses and/or
  113. # ports, in addition to the default. See also the <VirtualHost>
  114. # directive.
  115. #
  116. # Change this to Listen on specific IP addresses as shown below to
  117. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  118. #
  119. #Listen 12.34.56.78:80
  120. Listen 80
  121.  
  122.  
  123.  
  124. #
  125. # Dynamic Shared Object (DSO) Support
  126. #
  127. # To be able to use the functionality of a module which was built as a DSO you
  128. # have to place corresponding `LoadModule' lines at this location so the
  129. # directives contained in it are actually available _before_ they are used.
  130. # Statically compiled modules (those listed by `httpd -l') do not need
  131. # to be loaded here.
  132. #
  133. # Example:
  134. # LoadModule foo_module modules/mod_foo.so
  135. #
  136. LoadModule access_module modules/mod_access.so
  137. LoadModule actions_module modules/mod_actions.so
  138. LoadModule alias_module modules/mod_alias.so
  139. LoadModule asis_module modules/mod_asis.so
  140. LoadModule auth_module modules/mod_auth.so
  141. LoadModule auth_anon_module modules/mod_auth_anon.so
  142. LoadModule auth_dbm_module modules/mod_auth_dbm.so
  143. LoadModule auth_digest_module modules/mod_auth_digest.so
  144. #LoadModule mysql_auth_module modules/mod_auth_mysql.so
  145. #LoadModule auth_remote_module modules/mod_auth_remote.so
  146. LoadModule autoindex_module modules/mod_autoindex.so
  147. LoadModule cern_meta_module modules/mod_cern_meta.so
  148. LoadModule cgi_module modules/mod_cgi.so
  149. #LoadModule dav_module modules/mod_dav.so
  150. #LoadModule dav_fs_module modules/mod_dav_fs.so
  151. LoadModule dir_module modules/mod_dir.so
  152. LoadModule env_module modules/mod_env.so
  153. LoadModule expires_module modules/mod_expires.so
  154. LoadModule file_cache_module modules/mod_file_cache.so
  155. LoadModule headers_module modules/mod_headers.so
  156. LoadModule imap_module modules/mod_imap.so
  157. LoadModule include_module modules/mod_include.so
  158. LoadModule info_module modules/mod_info.so
  159. LoadModule isapi_module modules/mod_isapi.so
  160. LoadModule log_config_module modules/mod_log_config.so
  161. LoadModule mime_module modules/mod_mime.so
  162. #LoadModule mime_magic_module modules/mod_mime_magic.so
  163. LoadModule proxy_module modules/mod_proxy.so
  164. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  165. LoadModule proxy_http_module modules/mod_proxy_http.so
  166. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  167. LoadModule negotiation_module modules/mod_negotiation.so
  168. LoadModule rewrite_module modules/mod_rewrite.so
  169. LoadModule setenvif_module modules/mod_setenvif.so
  170. LoadModule speling_module modules/mod_speling.so
  171. LoadModule status_module modules/mod_status.so
  172. LoadModule unique_id_module modules/mod_unique_id.so
  173. LoadModule userdir_module modules/mod_userdir.so
  174. LoadModule usertrack_module modules/mod_usertrack.so
  175. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  176.  
  177.  
  178. ### For PhpBB and PhpEclipse support
  179. EnableSendfile Off
  180. EnableMMAP Off
  181.  
  182. <IfModule mod_dav.c>
  183. <IfModule mod_dav_fs.c>
  184. Include conf/moddav.conf
  185. </IfModule>
  186. </IfModule>
  187.  
  188. <IfModule mod_auth_mysql.c>
  189. Include conf/mod_auth_mysql.conf
  190. </IfModule>
  191.  
  192. <IfModule mod_auth_remote.c>
  193. <Directory "/xampp/htdocs/fonts/">
  194.  AllowOverride All
  195.  AuthType           Basic
  196.  AuthName           "AUTH REMOTE TEST"
  197.  AuthRemoteServer   127.0.0.1        # like www.home.net
  198.  AuthRemotePort     80
  199.  AuthRemoteURL      /forbidden/        # like www.home.net/forbidden/
  200.  require            valid-user
  201.  ##### user:pass
  202. </Directory>
  203. </IfModule>
  204.  
  205. Include conf/ssl.conf
  206.  
  207. LoadFile "/xampp/apache/bin/php5ts.dll"
  208. LoadModule php5_module "/xampp/apache/bin/php5apache2.dll"
  209.  
  210. Alias /webalizer "/xampp/webalizer/"
  211.  
  212.     <Directory "/xampp/webalizer/">
  213.         Options Indexes MultiViews ExecCGI
  214.         AddHandler cgi-script .cgi .exe
  215.         Order allow,deny
  216.         Allow from all
  217.     </Directory>
  218.  
  219.  
  220. #ScriptAlias /php/ "/xampp/php/"
  221.  
  222. AddType application/x-httpd-php .php .php4 .php3 .phtml
  223. #Action application/x-httpd-php "/php/php.exe"
  224.  
  225. Alias /phpmyadmin "/xampp/phpmyadmin/"
  226.  
  227.     <Directory "/xampp/phpMyAdmin/">
  228.         Options Indexes MultiViews ExecCGI
  229.         DirectoryIndex index.php
  230.         Order allow,deny
  231.         Allow from all
  232.     </Directory>
  233.  
  234.     Alias /excel "/xampp/htdocs/excel/"
  235.  
  236.     <Directory "/xampp/htdocs/excel/">
  237.         Options Indexes MultiViews ExecCGI
  238.         AddHandler cgi-script .cgi .exe
  239.         Order allow,deny
  240.         Allow from all
  241.     </Directory>
  242.     
  243.     Alias /pdf "/xampp/htdocs/pdf/"
  244.  
  245.     <Directory "/xampp/htdocs/pdf/">
  246.         Options Indexes MultiViews ExecCGI
  247.         AddHandler cgi-script .cgi .exe
  248.         Order allow,deny
  249.         Allow from all
  250.     </Directory>
  251.  
  252.     Alias /csimcache "/xampp/tmp/"
  253.  
  254.     <Directory "/xampp/tmp">
  255.         AllowOverride None
  256.         Order allow,deny
  257.         Allow from all
  258.     </Directory>
  259.  
  260. #
  261. # ExtendedStatus controls whether Apache will generate "full" status
  262. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  263. # Off) when the "server-status" handler is called. The default is Off.
  264. #
  265. #ExtendedStatus On
  266.  
  267. ### Section 2: 'Main' server configuration
  268. #
  269. # The directives in this section set up the values used by the 'main'
  270. # server, which responds to any requests that aren't handled by a
  271. # <VirtualHost> definition.  These values also provide defaults for
  272. # any <VirtualHost> containers you may define later in the file.
  273. #
  274. # All of these directives may appear inside <VirtualHost> containers,
  275. # in which case these default settings will be overridden for the
  276. # virtual host being defined.
  277. #
  278.  
  279. #
  280. # ServerAdmin: Your address, where problems with the server should be
  281. # e-mailed.  This address appears on some server-generated pages, such
  282. # as error documents.  e.g. admin@your-domain.com
  283. #
  284. ServerAdmin admin@localhost
  285.  
  286. #
  287. # ServerName gives the name and port that the server uses to identify itself.
  288. # This can often be determined automatically, but we recommend you specify
  289. # it explicitly to prevent problems during startup.
  290. #
  291. # If this is not set to valid DNS name for your host, server-generated
  292. # redirections will not work.  See also the UseCanonicalName directive.
  293. #
  294. # If your host doesn't have a registered DNS name, enter its IP address here.
  295. # You will have to access it by its address anyway, and this will make
  296. # redirections work in a sensible way.
  297. #
  298. ServerName localhost
  299.  
  300. #
  301. # UseCanonicalName: Determines how Apache constructs self-referencing
  302. # URLs and the SERVER_NAME and SERVER_PORT variables.
  303. # When set "Off", Apache will use the Hostname and Port supplied
  304. # by the client.  When set "On", Apache will use the value of the
  305. # ServerName directive.
  306. #
  307. UseCanonicalName Off
  308.  
  309. #
  310. # DocumentRoot: The directory out of which you will serve your
  311. # documents. By default, all requests are taken from this directory, but
  312. # symbolic links and aliases may be used to point to other locations.
  313. #
  314. DocumentRoot "/xampp/htdocs"
  315.  
  316. #
  317. # Each directory to which Apache has access can be configured with respect
  318. # to which services and features are allowed and/or disabled in that
  319. # directory (and its subdirectories).
  320. #
  321. # First, we configure the "default" to be a very restrictive set of
  322. # features.
  323. #
  324. <Directory />
  325.     Options FollowSymLinks
  326.     AllowOverride None
  327. </Directory>
  328.  
  329. #
  330. # Note that from this point forward you must specifically allow
  331. # particular features to be enabled - so if something's not working as
  332. # you might expect, make sure that you have specifically enabled it
  333. # below.
  334. #
  335.  
  336. #
  337. # This should be changed to whatever you set DocumentRoot to.
  338. #
  339. <Directory "/xampp/htdocs">
  340.  
  341. #
  342. # Possible values for the Options directive are "None", "All",
  343. # or any combination of:
  344. #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
  345. #
  346. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  347. # doesn't give it to you.
  348. #
  349. # The Options directive is both complicated and important.  Please see
  350. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  351. # for more information.
  352. #
  353.     Options Indexes FollowSymLinks MultiViews Includes ExecCGI
  354.     AddType text/html .shtml
  355.         AddHandler server-parsed .shtml
  356.         AddHandler cgi-script .cgi .pl
  357. # ReadmeName footer.html
  358. #
  359. # AllowOverride controls what directives may be placed in .htaccess files.
  360. # It can be "All", "None", or any combination of the keywords:
  361. #   Options FileInfo AuthConfig Limit
  362. #
  363.     AllowOverride All
  364.  
  365. #
  366. # Controls who can get stuff from this server.
  367. #
  368.     Order allow,deny
  369.     Allow from all
  370.  
  371. </Directory>
  372.  
  373. #
  374. # UserDir: The name of the directory that is appended onto a user's home
  375. # directory if a ~user request is received.  Be especially careful to use
  376. # proper, forward slashes here.
  377. #
  378. # UserDir "My Documents/My Website"
  379.  
  380. #
  381. # Control access to UserDir directories.  The following is an example
  382. # for a site where these directories are restricted to read-only.
  383. #
  384. # You must correct the path for the root to match your system's configured
  385. # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
  386. # or whichever, as appropriate.
  387. #
  388. #<Directory "C:/Documents and Settings/*/My Documents/My Website">
  389. #    AllowOverride FileInfo AuthConfig Limit
  390. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  391. #    <Limit GET POST OPTIONS PROPFIND>
  392. #        Order allow,deny
  393. #        Allow from all
  394. #    </Limit>
  395. #    <LimitExcept GET POST OPTIONS PROPFIND>
  396. #        Order deny,allow
  397. #        Deny from all
  398. #    </LimitExcept>
  399. #</Directory>
  400.  
  401. #
  402. # DirectoryIndex: sets the file that Apache will serve if a directory
  403. # is requested.
  404. #
  405. # The index.html.var file (a type-map) is used to deliver content-
  406. # negotiated documents.  The MultiViews Option can be used for the
  407. # same purpose, but it is much slower.
  408. #
  409. DirectoryIndex index.html index.htm index.php index.php4 index.php3 index.cgi index.pl index.html.var index.phtml
  410.  
  411. #
  412. # AccessFileName: The name of the file to look for in each directory
  413. # for access control information.  See also the AllowOverride directive.
  414. #
  415. AccessFileName .htaccess
  416.  
  417. #
  418. # The following lines prevent .htaccess and .htpasswd files from being
  419. # viewed by Web clients.
  420. #
  421. <Files ~ "^\.ht">
  422.     Order allow,deny
  423.     Deny from all
  424. </Files>
  425.  
  426. #
  427. # TypesConfig describes where the mime.types file (or equivalent) is
  428. # to be found.
  429. #
  430. TypesConfig conf/mime.types
  431.  
  432. #
  433. # DefaultType is the default MIME type the server will use for a document
  434. # if it cannot otherwise determine one, such as from filename extensions.
  435. # If your server contains mostly text or HTML documents, "text/plain" is
  436. # a good value.  If most of your content is binary, such as applications
  437. # or images, you may want to use "application/octet-stream" instead to
  438. # keep browsers from trying to display binary files as though they are
  439. # text.
  440. #
  441. DefaultType text/plain
  442.  
  443. #
  444. # The mod_mime_magic module allows the server to use various hints from the
  445. # contents of the file itself to determine its type.  The MIMEMagicFile
  446. # directive tells the module where the hint definitions are located.
  447. #
  448. <IfModule mod_mime_magic.c>
  449.     MIMEMagicFile conf/magic
  450. </IfModule>
  451.  
  452. #
  453. # HostnameLookups: Log the names of clients or just their IP addresses
  454. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  455. # The default is off because it'd be overall better for the net if people
  456. # had to knowingly turn this feature on, since enabling it means that
  457. # each client request will result in AT LEAST one lookup request to the
  458. # nameserver.
  459. #
  460. HostnameLookups Off
  461.  
  462. #
  463. # ErrorLog: The location of the error log file.
  464. # If you do not specify an ErrorLog directive within a <VirtualHost>
  465. # container, error messages relating to that virtual host will be
  466. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  467. # container, that host's errors will be logged there and not here.
  468. #
  469. ErrorLog logs/error.log
  470.  
  471. #
  472. # LogLevel: Control the number of messages logged to the error.log.
  473. # Possible values include: debug, info, notice, warn, error, crit,
  474. # alert, emerg.
  475. #
  476. LogLevel error
  477.  
  478. #
  479. # The following directives define some format nicknames for use with
  480. # a CustomLog directive (see below).
  481. #
  482. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  483. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  484. LogFormat "%{Referer}i -> %U" referer
  485. LogFormat "%{User-agent}i" agent
  486.  
  487. #
  488. # The location and format of the access logfile (Common Logfile Format).
  489. # If you do not define any access logfiles within a <VirtualHost>
  490. # container, they will be logged here.  Contrariwise, if you *do*
  491. # define per-<VirtualHost> access logfiles, transactions will be
  492. # logged therein and *not* in this file.
  493. #
  494. CustomLog logs/access.log common
  495.  
  496. #
  497. # If you would like to have agent and referer logfiles, uncomment the
  498. # following directives.
  499. #
  500. #CustomLog logs/referer.log referer
  501. #CustomLog logs/agent.log agent
  502.  
  503. #
  504. # If you prefer a single logfile with access, agent, and referer information
  505. # (Combined Logfile Format) you can use the following directive.
  506. #
  507. # CustomLog logs/access.log combined
  508.  
  509. #
  510. # Optionally add a line containing the server version and virtual host
  511. # name to server-generated pages (error documents, FTP directory listings,
  512. # mod_status and mod_info output etc., but not CGI generated documents).
  513. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  514. # Set to one of:  On | Off | EMail
  515. #
  516. ServerSignature On
  517.  
  518. #
  519. # Aliases: Add here as many aliases as you need (with no limit). The format is
  520. # Alias fakename realname
  521. #
  522. # Note that if you include a trailing / on fakename then the server will
  523. # require it to be present in the URL.  So "/icons" isn't aliased in this
  524. # example, only "/icons/".  If the fakename is slash-terminated, then the
  525. # realname must also be slash terminated, and if the fakename omits the
  526. # trailing slash, the realname must also omit it.
  527. #
  528. # We include the /icons/ alias for FancyIndexed directory listings.  If you
  529. # do not use FancyIndexing, you may comment this out.
  530. #
  531. Alias /icons/ "/xampp/apache/icons/"
  532.  
  533. <Directory "/xampp/apache/icons">
  534.     Options Indexes MultiViews
  535.     AllowOverride None
  536.     Order allow,deny
  537.     Allow from all
  538. </Directory>
  539.  
  540.  
  541. #
  542. # This should be changed to the ServerRoot/manual/.  The alias provides
  543. # the manual, even if you choose to move your DocumentRoot.  You may comment
  544. # this out if you do not care for the documentation.
  545. #
  546. #
  547. # ScriptAlias: This controls which directories contain server scripts.
  548. # ScriptAliases are essentially the same as Aliases, except that
  549. # documents in the realname directory are treated as applications and
  550. # run by the server when requested rather than as documents sent to the client.
  551. # The same rules about trailing "/" apply to ScriptAlias directives as to
  552. # Alias.
  553. #
  554. ScriptAlias /cgi-bin/ "/xampp/cgi-bin/"
  555.  
  556. #
  557. # "/xampp/apache/cgi-bin" should be changed to whatever your ScriptAliased
  558. # CGI directory exists, if you have that configured.
  559. #
  560. <Directory "/xampp/cgi-bin">
  561.     AllowOverride None
  562.     Options Includes ExecCGI
  563.         AddHandler server-parsed .shtml
  564.         AddHandler cgi-script .cgi .pl
  565.     Order allow,deny
  566.     Allow from all
  567. </Directory>
  568.  
  569. #
  570. # Redirect allows you to tell clients about documents which used to exist in
  571. # your server's namespace, but do not anymore. This allows you to tell the
  572. # clients where to look for the relocated document.
  573. # Example:
  574. # Redirect permanent /foo http://www.example.com/bar
  575.  
  576. #
  577. # Directives controlling the display of server-generated directory listings.
  578. #
  579.  
  580. #
  581. # FancyIndexing is whether you want fancy directory indexing or standard.
  582. # VersionSort is whether files containing version numbers should be
  583. # compared in the natural way, so that `apache-1.3.9.tar' is placed before
  584. # `apache-1.3.12.tar'.
  585. #
  586. IndexOptions FancyIndexing VersionSort
  587.  
  588. #
  589. # AddIcon* directives tell the server which icon to show for different
  590. # files or filename extensions.  These are only displayed for
  591. # FancyIndexed directories.
  592. #
  593. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  594.  
  595. AddIconByType (TXT,/icons/text.gif) text/*
  596. AddIconByType (IMG,/icons/image2.gif) image/*
  597. AddIconByType (SND,/icons/sound2.gif) audio/*
  598. AddIconByType (VID,/icons/movie.gif) video/*
  599.  
  600. AddIcon /icons/binary.gif .bin .exe
  601. AddIcon /icons/binhex.gif .hqx
  602. AddIcon /icons/tar.gif .tar
  603. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  604. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  605. AddIcon /icons/a.gif .ps .ai .eps
  606. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  607. AddIcon /icons/text.gif .txt
  608. AddIcon /icons/c.gif .c
  609. AddIcon /icons/p.gif .pl .py
  610. AddIcon /icons/f.gif .for
  611. AddIcon /icons/dvi.gif .dvi
  612. AddIcon /icons/uuencoded.gif .uu
  613. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  614. AddIcon /icons/tex.gif .tex
  615. AddIcon /icons/bomb.gif core
  616.  
  617. AddIcon /icons/back.gif ..
  618. AddIcon /icons/hand.right.gif README
  619. AddIcon /icons/folder.gif ^^DIRECTORY^^
  620. AddIcon /icons/blank.gif ^^BLANKICON^^
  621.  
  622. #
  623. # DefaultIcon is which icon to show for files which do not have an icon
  624. # explicitly set.
  625. #
  626. DefaultIcon /icons/unknown.gif
  627.  
  628. #
  629. # AddDescription allows you to place a short description after a file in
  630. # server-generated indexes.  These are only displayed for FancyIndexed
  631. # directories.
  632. # Format: AddDescription "description" filename
  633. #
  634. #AddDescription "GZIP compressed document" .gz
  635. #AddDescription "tar archive" .tar
  636. #AddDescription "GZIP compressed tar archive" .tgz
  637.  
  638. #
  639. # ReadmeName is the name of the README file the server will look for by
  640. # default, and append to directory listings.
  641. #
  642. # HeaderName is the name of a file which should be prepended to
  643. # directory indexes.
  644. ReadmeName README.html
  645. HeaderName HEADER.html
  646.  
  647. #
  648. # IndexIgnore is a set of filenames which directory indexing should ignore
  649. # and not include in the listing.  Shell-style wildcarding is permitted.
  650. #
  651. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  652.  
  653. #
  654. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  655. # information on the fly. Note: Not all browsers support this.
  656. # Despite the name similarity, the following Add* directives have nothing
  657. # to do with the FancyIndexing customization directives above.
  658. #
  659. AddEncoding x-compress Z
  660. AddEncoding x-gzip gz tgz
  661.  
  662. #
  663. # DefaultLanguage and AddLanguage allows you to specify the language of
  664. # a document. You can then use content negotiation to give a browser a
  665. # file in a language the user can understand.
  666. #
  667. # Specify a default language. This means that all data
  668. # going out without a specific language tag (see below) will
  669. # be marked with this one. You probably do NOT want to set
  670. # this unless you are sure it is correct for all cases.
  671. #
  672. # * It is generally better to not mark a page as
  673. # * being a certain language than marking it with the wrong
  674. # * language!
  675. #
  676. # DefaultLanguage nl
  677. #
  678. # Note 1: The suffix does not have to be the same as the language
  679. # keyword --- those with documents in Polish (whose net-standard
  680. # language code is pl) may wish to use "AddLanguage pl .po" to
  681. # avoid the ambiguity with the common suffix for perl scripts.
  682. #
  683. # Note 2: The example entries below illustrate that in some cases
  684. # the two character 'Language' abbreviation is not identical to
  685. # the two character 'Country' code for its country,
  686. # E.g. 'Danmark/dk' versus 'Danish/da'.
  687. #
  688. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  689. # specifier. There is 'work in progress' to fix this and get
  690. # the reference data for rfc1766 cleaned up.
  691. #
  692. # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
  693. # French (fr) - German (de) - Greek-Modern (el)
  694. # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
  695. # Portugese (pt) - Luxembourgeois* (ltz)
  696. # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  697. # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  698. # Russian (ru) - Croatian (hr)
  699. #
  700. AddLanguage da .dk
  701. AddLanguage nl .nl
  702. AddLanguage en .en
  703. AddLanguage et .et
  704. AddLanguage fr .fr
  705. AddLanguage de .de
  706. AddLanguage he .he
  707. AddLanguage el .el
  708. AddLanguage it .it
  709. AddLanguage ja .ja
  710. AddLanguage pl .po
  711. AddLanguage ko .ko
  712. AddLanguage pt .pt
  713. AddLanguage nn .nn
  714. AddLanguage no .no
  715. AddLanguage pt-br .pt-br
  716. AddLanguage ltz .ltz
  717. AddLanguage ca .ca
  718. AddLanguage es .es
  719. AddLanguage sv .se
  720. AddLanguage cz .cz
  721. AddLanguage ru .ru
  722. AddLanguage tw .tw
  723. AddLanguage zh-tw .tw
  724. AddLanguage hr .hr
  725.  
  726. #
  727. # LanguagePriority allows you to give precedence to some languages
  728. # in case of a tie during content negotiation.
  729. #
  730. # Just list the languages in decreasing order of preference. We have
  731. # more or less alphabetized them here. You probably want to change this.
  732. #
  733. # LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
  734.  
  735. #
  736. # ForceLanguagePriority allows you to serve a result page rather than
  737. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  738. # [in case no accepted languages matched the available variants]
  739. #
  740. # ForceLanguagePriority Prefer Fallback
  741.  
  742. #
  743. # Specify a default charset for all pages sent out. This is
  744. # always a good idea and opens the door for future internationalisation
  745. # of your web site, should you ever want it. Specifying it as
  746. # a default does little harm; as the standard dictates that a page
  747. # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  748. # are merely stating the obvious. There are also some security
  749. # reasons in browsers, related to javascript and URL parsing
  750. # which encourage you to always set a default char set.
  751. #
  752. AddDefaultCharset ISO-8859-1
  753.  
  754. #
  755. # Commonly used filename extensions to character sets. You probably
  756. # want to avoid clashes with the language extensions, unless you
  757. # are good at carefully testing your setup after each change.
  758. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
  759. # the official list of charset names and their respective RFCs
  760. #
  761. AddCharset ISO-8859-1  .iso8859-1 .latin1
  762. AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
  763. AddCharset ISO-8859-3  .iso8859-3 .latin3
  764. AddCharset ISO-8859-4  .iso8859-4 .latin4
  765. AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
  766. AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
  767. AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
  768. AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
  769. AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
  770. AddCharset ISO-2022-JP .iso2022-jp .jis
  771. AddCharset ISO-2022-KR .iso2022-kr .kis
  772. AddCharset ISO-2022-CN .iso2022-cn .cis
  773. AddCharset Big5        .Big5       .big5
  774. # For russian, more than one charset is used (depends on client, mostly):
  775. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  776. AddCharset CP866       .cp866
  777. AddCharset KOI8-r      .koi8-r .koi8-ru
  778. AddCharset KOI8-ru     .koi8-uk .ua
  779. AddCharset ISO-10646-UCS-2 .ucs2
  780. AddCharset ISO-10646-UCS-4 .ucs4
  781. AddCharset UTF-8       .utf8
  782.  
  783. # The set below does not map to a specific (iso) standard
  784. # but works on a fairly wide range of browsers. Note that
  785. # capitalization actually matters (it should not, but it
  786. # does for some browsers).
  787. #
  788. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets
  789. # for a list of sorts. But browsers support few.
  790. #
  791. AddCharset GB2312      .gb2312 .gb
  792. AddCharset utf-7       .utf7
  793. AddCharset utf-8       .utf8
  794. AddCharset big5        .big5 .b5
  795. AddCharset EUC-TW      .euc-tw
  796. AddCharset EUC-JP      .euc-jp
  797. AddCharset EUC-KR      .euc-kr
  798. AddCharset shift_jis   .sjis
  799.  
  800. #
  801. # AddType allows you to add to or override the MIME configuration
  802. # file mime.types for specific file types.
  803. #
  804. AddType application/x-tar .tgz
  805. #AddType text/html .shtml
  806. #AddHandler server-parsed .shtml
  807.  
  808.  
  809. #
  810. # AddHandler allows you to map certain file extensions to "handlers":
  811. # actions unrelated to filetype. These can be either built into the server
  812. # or added with the Action directive (see below)
  813. #
  814. # To use CGI scripts outside of ScriptAliased directories:
  815. # (You will also need to add "ExecCGI" to the "Options" directive.)
  816. #
  817. #AddHandler cgi-script .cgi
  818.  
  819. #
  820. # For files that include their own HTTP headers:
  821. #
  822. #AddHandler send-as-is asis
  823.  
  824. #
  825. # For server-parsed imagemap files:
  826. #
  827. #AddHandler imap-file map
  828.  
  829. #
  830. # For type maps (negotiated resources):
  831. # (This is enabled by default to allow the Apache "It Worked" page
  832. #  to be distributed in multiple languages.)
  833. #
  834. AddHandler type-map var
  835.  
  836. # Filters allow you to process content before it is sent to the client.
  837. #
  838. # To parse .shtml files for server-side includes (SSI):
  839. # (You will also need to add "Includes" to the "Options" directive.)
  840. #
  841. #AddOutputFilter INCLUDES .shtml
  842.  
  843. #
  844. # Action lets you define media types that will execute a script whenever
  845. # a matching file is called. This eliminates the need for repeated URL
  846. # pathnames for oft-used CGI file processors.
  847. # Format: Action media/type /cgi-script/location
  848. # Format: Action handler-name /cgi-script/location
  849. #
  850.  
  851. #
  852. # Customizable error responses come in three flavors:
  853. # 1) plain text 2) local redirects 3) external redirects
  854. #
  855. # Some examples:
  856. #ErrorDocument 500 "The server made a boo boo."
  857. #ErrorDocument 404 /missing.html
  858. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  859. #ErrorDocument 402 http://www.example.com/subscription_info.html
  860. #
  861.  
  862. #
  863. # Putting this all together, we can Internationalize error responses.
  864. #
  865. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  866. # our collection of by-error message multi-language collections.  We use
  867. # includes to substitute the appropriate text.
  868. #
  869. # You can modify the messages' appearance without changing any of the
  870. # default HTTP_<error>.html.var files by adding the line;
  871. #
  872. #   Alias /error/include/ "/your/include/path/"
  873. #
  874. # which allows you to create your own set of files by starting with the
  875. # /xampp/apache/error/include/ files and
  876. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  877. #
  878.  
  879. <IfModule mod_negotiation.c>
  880. <IfModule mod_include.c>
  881.     Alias /error/ "/xampp/apache/error/"
  882.  
  883.     <Directory "/xampp/apache/error">
  884.         AllowOverride None
  885.         Options IncludesNoExec
  886.         AddOutputFilter Includes html
  887.         AddHandler type-map var
  888.         Order allow,deny
  889.         Allow from all
  890.         LanguagePriority en es de fr
  891.         ForceLanguagePriority Prefer Fallback
  892.     </Directory>
  893.  
  894.     ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  895.     ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  896.     ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  897.     ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  898.     ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  899.     ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  900.     ErrorDocument 410 /error/HTTP_GONE.html.var
  901.     ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  902.     ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  903.     ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  904.     ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  905.     ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  906.     ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  907.     ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  908.     ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  909.     ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  910.     ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  911.  
  912. </IfModule>
  913. </IfModule>
  914.  
  915. #
  916. # The following directives modify normal HTTP response behavior to
  917. # handle known problems with browser implementations.
  918. #
  919. BrowserMatch "Mozilla/2" nokeepalive
  920. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  921. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  922. BrowserMatch "Java/1\.0" force-response-1.0
  923. BrowserMatch "JDK/1\.0" force-response-1.0
  924.  
  925. #
  926. # The following directive disables redirects on non-GET requests for
  927. # a directory that does not include the trailing slash.  This fixes a
  928. # problem with Microsoft WebFolders which does not appropriately handle
  929. # redirects for folders with DAV methods.
  930. #
  931. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  932. BrowserMatch "^WebDrive" redirect-carefully
  933.  
  934. #
  935. # Allow server status reports, with the URL of http://servername/server-status
  936. # Change the ".localhost" to match your domain to enable.
  937. #
  938. #<Location /server-status>
  939. #    SetHandler server-status
  940. #    Order deny,allow
  941. #    Deny from all
  942. #    Allow from .localhost
  943. #</Location>
  944.  
  945. #
  946. # Allow remote server configuration reports, with the URL of
  947. #  http://servername/server-info (requires that mod_info.c be loaded).
  948. # Change the ".your-domain.com" to match your domain to enable.
  949. #
  950. #<Location /server-info>
  951. #    SetHandler server-info
  952. #    Order deny,allow
  953. #    Deny from all
  954. #    Allow from .localhost
  955. #</Location>
  956.  
  957. #
  958. # Proxy Server directives. Uncomment the following lines to
  959. # enable the proxy server:
  960. #
  961. #<IfModule mod_proxy.c>
  962. #ProxyRequests On
  963. #
  964. #<Proxy *>
  965. #    Order deny,allow
  966. #    Deny from all
  967. #    Allow from .your-domain.com
  968. #</Proxy>
  969.  
  970. #
  971. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  972. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  973. # Set to one of: Off | On | Full | Block
  974. #
  975. #ProxyVia On
  976.  
  977. #
  978. # To enable the cache as well, edit and uncomment the following lines:
  979. # (no cacheing without CacheRoot)
  980. #
  981. #CacheRoot "/xampp/apache/proxy"
  982. #CacheSize 5
  983. #CacheGcInterval 4
  984. #CacheMaxExpire 24
  985. #CacheLastModifiedFactor 0.1
  986. #CacheDefaultExpire 1
  987. #NoCache a-domain.com another-domain.edu joes.garage-sale.com
  988.  
  989. #</IfModule>
  990. # End of proxy directives.
  991.  
  992.  
  993.  
  994. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  995. # machine you can setup VirtualHost containers for them. Most configurations
  996. # use only name-based virtual hosts so the server doesn't need to worry about
  997. # IP addresses. This is indicated by the asterisks in the directives below.
  998. #
  999. # Please see the documentation at
  1000. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  1001. # for further details before you try to setup virtual hosts.
  1002. #
  1003. # You may use the command line option '-S' to verify your virtual host
  1004. # configuration.
  1005.  
  1006. #
  1007. # Use name-based virtual hosting.
  1008. #
  1009. #NameVirtualHost *
  1010.  
  1011. #
  1012. # VirtualHost example:
  1013. # Almost any Apache directive may go into a VirtualHost container.
  1014. # The first VirtualHost section is used for requests without a known
  1015. # server name.
  1016. #
  1017. #<VirtualHost *>
  1018. #    ServerAdmin webmaster@dummy-host.example.com
  1019. #    DocumentRoot /www/docs/dummy-host.example.com
  1020. #    ServerName dummy-host.example.com
  1021. #    ErrorLog logs/dummy-host.example.com-error_log
  1022. #    CustomLog logs/dummy-host.example.com-access_log common
  1023. #</VirtualHost>
  1024.  
  1025. Win32DisableAcceptEx ON